<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<title>专利协同服务网络平台</title>
<link href="${pageContext.request.contextPath}/css/style.css"
	rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath}/css/postContent.css"
	rel="stylesheet" type="text/css" />
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery/jquery-3.2.1.min.js"></script>
</head>

<body>
	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="#">首页</a></li>
			<li><a href="#">已接单专利</a></li>
			<li><a href="#" onClick="javascript:history.back();">沟通交流</a></li>
			<li><a href="#">交流详细</a></li>
		</ul>
	</div>
	<div class="formbody">
		<div id="usual1" class="usual">
			<div class="formtitle">
				<span>问题交流详细1</span>
			</div>
			<ul class="forminfo">
				<li><input type="button" onclick="history.back()" class="btn"
					value="返回" style="width: 80px;" /></li>

			</ul>
			<div class="main_box">
				<form id="queryForm" method="post">
					<div class="check_box public-search" style="width: 80%;">
						<div id="record" class="c_record" style="height: 200px;">
							<div id="cols1">
								<span id="poster">提出人:</span>
								<c:forEach items="${dicUserTypes}" var="dicUserType">
									<c:if test="${dicUserType.typeCode == poster.userType}">
										<span id="posterType"> ${poster.userName}
											[${dicUserType.description}]</span>
									</c:if>
								</c:forEach>
								<c:forEach items="${dicSchools}" var="dicSchool">
									<c:if test="${dicSchool.typeCode == poster.schoolType}">
										<span id="posterType"> 学校： [${dicSchool.description}]</span>
									</c:if>
								</c:forEach>
								<span id="posterType">部门：[${poster.department}]</span>
							</div>
							<div id="cols2">
								<div class="content">
									<span>问题标题：${poster.title}</span>
									<hr />
									<span>问题详细：</span>
									<div>${poster.content}</div>
								</div>
								<div class="posttime">
									<span>提出于：${fn:substring(poster.createTime,0,19)} <a
										href="${pageContext.request.contextPath}/replier/replyQuestionUI.do?posterId=${poster.id}&floor=1"
										class="replyA">[回复]</a></span>
								</div>
							</div>
						</div>
						<c:forEach items="${repliers}" var="replier" varStatus="status">
							<div id="record">
								<div id="cols1">
									<span id="poster">回复人:</span>
									<c:forEach items="${dicUserTypes}" var="dicUserType">
										<c:if test="${dicUserType.typeCode == replier.userType}">
											<span id="replierType"> ${replier.userName}
												[${dicUserType.description}]</span>
										</c:if>
									</c:forEach>
									<c:forEach items="${dicSchools}" var="dicSchool">
										<c:if test="${dicSchool.typeCode == replier.schoolType}">
											<span id="replierType"> 学校： [${dicSchool.description}]</span>
										</c:if>
									</c:forEach>
									<span id="replierType">部门：[${replier.department}]</span> <span
										id="replierTarget">回复:${replier.floor}楼</span>
								</div>
								<div id="cols2">
									<div class="content">${replier.content}</div>
									<div class="posttime">
										<span>回复于：${fn:substring(replier.createTime,0,19)}<a
											href="${pageContext.request.contextPath}/replier/replyQuestionUI.do?posterId=${poster.id}&floor=${status.count+1}"
											class="replyA">[回复]</a></span>
									</div>
								</div>
							</div>
						</c:forEach>
					</div>
				</form>
			</div>
		</div>
		<input class="btn btn-primary" style="margin-left: 77%;"   onclick="closeLayer()" type="button" value="&nbsp;&nbsp;关闭&nbsp;&nbsp;">
		
	</div>
	<script>
	function closeLayer(){
			var index=parent.layer.getFrameIndex(window.name);
			window.parent.location.reload();
			parent.layer.close(index);
		}
	</script>
</body>
</html>